
<?php if (validation_errors()) : ?>
<div class="notification error">
	<?php echo validation_errors(); ?>
</div>
<?php endif; ?>
<?php // Change the css classes to suit your needs    
if( isset($leagueteam) ) {
	$leagueteam = (array)$leagueteam;
}
$id = isset($leagueteam['league_team_id']) ? "/".$leagueteam['league_team_id'] : '';
?>
<?php echo form_open($this->uri->uri_string(), 'class="constrained ajax-form"'); ?>
<?php if(isset($leagueteam['league_team_id'])): ?><input id="league_team_id" type="hidden" name="league_team_id" value="<?php echo $leagueteam['league_team_id'];?>"  /><?php endif;?>
<div>
        <?php echo form_label('League Id', 'league_id'); ?>
        <input id="league_id" type="text" name="league_id" maxlength="1" value="<?php echo set_value('league_id', isset($leagueteam['league_id']) ? $leagueteam['league_id'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Team Id', 'team_id'); ?>
        <input id="team_id" type="text" name="team_id" maxlength="1" value="<?php echo set_value('team_id', isset($leagueteam['team_id']) ? $leagueteam['team_id'] : ''); ?>"  />
</div>



	<div class="text-right">
		<br/>
		<input type="submit" name="submit" value="Create leagueteam" /> or <?php echo anchor(SITE_AREA .'/reports/leagueteam', lang('leagueteam_cancel')); ?>
	</div>
	<?php echo form_close(); ?>
